/*
 * @Author: tanjunyi@doctorwork.com
 * @Date: 2020-05-06 23:47:40
 * @LastEditors: tanjunyi@doctorwork.com
 * @LastEditTime: 2020-05-13 01:05:03
 * @Description:
 */
var mobx = require('mobx');
const { observable, autorun, action, configure, Reaction, runInAction } = mobx;
const obj = observable({
	a: 1,
	b: 2
})
let reaction = new Reaction('test Reaction', function () {
	this.track(() => {
		console.log(obj.a)
	})

})
reaction.track(() => {
	console.log(obj.b)
})
obj.b = 3;
obj.a = 2; 